/*

 */
package com.ohos.connent.bizscenecloud.biz.modular.device.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ohos.connent.bizscenecloud.biz.modular.device.entity.BusinessDevLibFile;
import com.ohos.connent.bizscenecloud.biz.modular.device.param.*;
import com.ohos.connent.bizscenecloud.biz.modular.device.result.BizDeviceUploadAuthResult;
import org.springframework.web.multipart.MultipartFile;



/**
 * 设备端Service接口
 **/
public interface BizDeviceService extends IService<BusinessDevLibFile> {

    /**
     * 获取设备端分页
     *
     * @param devicePageParam 分页参数
     * @return 分页列表
     */
    Page<BusinessDevLibFile> page(BizDevicePageParam devicePageParam);

    /**
     * 新增设备库文件
     *
     * @param deviceAddParam 新增加的设备端信息
     */
    void add(BizDeviceAddParam deviceAddParam);


    /**
     * 删除设备库文件
     *
     * @param bizDeviceIdsParam 设备端id集合
     */
    void delete(BizDeviceIdsParam bizDeviceIdsParam);

    /**
     * 下载设备库文件
     * @param devLibFileIdsParam
     */
    String getFileDownloadAuthUrlHUAWEI(BizDeviceIdParam devLibFileIdsParam);

    /**
     * 获取华为云文件上传授权URL和文件id
     * @param devFileAuthUrlParam
     * @return
     */
    BizDeviceUploadAuthResult getHWYunUploadAuthUrlAndFileId(BizDeviceUploadParam devFileAuthUrlParam);

    void upload(MultipartFile file, String fileId);

}
